package org.wichit.core.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "UserResponse", description = "微信登录返回信息")
public class UserResponse {

    @ApiModelProperty(value = "用户唯一标识")
    private String openid;

    @ApiModelProperty(value = "会话密钥")
    private String session_key;

    @ApiModelProperty(value = "用户在开放平台的唯一标识符，在满足 UnionID 下发条件的情况下会返回，详见 UnionID 机制说明。")
    private String unionid;

    @ApiModelProperty(value = "错误码值" +
            "-1 系统繁忙，此时请开发者稍候再试\t\n" +
            "0 请求成功\t\n" +
            "40029 code 无效\t\n" +
            "45011 频率限制，每个用户每分钟100次")
    private int errcode;

    @ApiModelProperty(value = "错误信息")
    private String errmsg;
}
